import request from "@/util/axios";

export const markList = (epRid) =>
    request({
        url: "/api/manga/edit/markList",
        method: "get",
        params: {epRid}
    })

export const saveMark = (epRid, markList) =>
    request({
        url: "/api/manga/edit/saveMark",
        method: "post",
        data: {
            epRid,
            markList
        }
    })

export const comment = (markId, comment) =>
    request({
        url: "/api/manga/edit/comment",
        method: "post",
        data: {
            markId,
            comment
        }
    })

export const undoComment = (id) =>
    request({
        url: "/api/manga/edit/undoComment",
        method: "get",
        params: {id}
    })

export const queryComment = (markId) =>
    request({
        url: "/api/manga/edit/queryComment",
        method: "get",
        params: {markId}
    })